export default {
  url: "/do/select/party",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'system/party',
  title: "签署方管理",
	tabs: {"code":"partyCategory","list":[],"keyword":"type"},
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"title","label":"签署方名称"},{"name":"uscc","label":"统一社会信用代码"},{"name":"telephone","label":"联系电话"},{"name":"address","label":"地址","type":"address"},{"name":"contactName","label":"联系人"},{"name":"idcard","label":"身份证"},{"name":"partType","label":"签署方类型","code":"partyType"},{"name":"status","label":"状态","type":"switch"},{"name":"type","label":"类型","code":"partyCategory"},{"name":"invoice","label":"发票信息","type":"inputTag"},{"name":"mail","label":"邮寄信息","type":"inputTag"},{"name":"account","label":"收款账户","type":"inputTag"},{"name":"companyId","label":"所属公司","type":"search","depend":"company"}],
  columns: ["title","partType","uscc","idcard","address","createGmt"],
  condition: ["title","partType"],
  slots: {
      header$() {
      return (
        <>
        <z-action p='cywsmyoa' label='添加' mode='drawer' href='/system/detail' type='primary' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='r9zz4ols' label={row.type== 2?'编辑':null} data={row} mode='drawer' href='/system/detail' fixed='edit' link map={{"id":"id"}} includeTitle='r' />
<z-action p='2mn9kezb' label={row.type == 1?'编辑':null} mode='dialog' fields={["title","uscc","telephone","address","contactName"]} link data={row} url='/do/patch/party' includeTitle='r' />
<z-action p='iseg73e3' label='删除' mode='confirm' link data={row} url='/do/delete/party' />
        </>
      )
    }
  }
}
  